VT-d: eliminate a mis-use of pcidevs_lock
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Sep 2011 17:31:44 +0000 (18:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Sep 2011 17:31:44 +0000 (18:31 +0100)
commit47cb1570ad6db5226334ab66cd2c0593ee719b53
treef5c35eee017f03e37861865efc6aa74b004e56cc
parent1f6bf99c22ce2e13d09e24431688679a96be36a0
VT-d: eliminate a mis-use of pcidevs_lock

dma_pte_clear_one() shouldn't acquire this global lock for the purpose
of processing a per-domain list. Furthermore the function a few lines
earlier has a comment stating that acquiring pcidevs_lock isn't
necessary here (whether that's really correct is another question).

Use the domain's mappin_lock instead to protect the mapped_rmrrs list.
Fold domain_rmrr_mapped() into its sole caller so that the otherwise
implicit dependency on pcidevs_lock there becomes more obvious (see
the comment there).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/vtd/iommu.c